package org.lit.controller;

import org.lit.base.Base;
import org.lit.entity.Obj;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/string")
    public String testResponseString(){
        return "test string";
    }

    @GetMapping("/obj")
    public Obj testResponseObj() {
        return new Obj("测试字符");
    }
}
